/*
 * Copyright (C) 2019 MediaTek Inc.

 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.

 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See http://www.gnu.org/licenses/gpl-2.0.html for more details.
 */

#ifndef _MT_PMIC_API_H_
#define _MT_PMIC_API_H_

extern unsigned int mt6359_upmu_set_rg_buck_vpu_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_buck_vpu_en(void);
extern unsigned int mt6359_upmu_get_da_vpu_vosel(void);
extern unsigned int mt6359_upmu_set_rg_buck_vpu_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_buck_vpu_vosel(void);
extern unsigned int mt6359_upmu_set_rg_buck_vcore_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_buck_vcore_en(void);
extern unsigned int mt6359_upmu_get_da_vcore_vosel(void);
extern unsigned int mt6359_upmu_set_rg_buck_vcore_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_buck_vcore_vosel(void);
extern unsigned int mt6359_upmu_set_rg_buck_vgpu11_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_buck_vgpu11_en(void);
extern unsigned int mt6359_upmu_get_da_vgpu11_vosel(void);
extern unsigned int mt6359_upmu_set_rg_buck_vgpu11_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_buck_vgpu11_vosel(void);
extern unsigned int mt6359_upmu_set_rg_buck_vgpu12_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_buck_vgpu12_en(void);
extern unsigned int mt6359_upmu_get_da_vgpu12_vosel(void);
extern unsigned int mt6359_upmu_set_rg_buck_vgpu12_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_buck_vgpu12_vosel(void);
extern unsigned int mt6359_upmu_set_rg_buck_vmodem_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_buck_vmodem_en(void);
extern unsigned int mt6359_upmu_get_da_vmodem_vosel(void);
extern unsigned int mt6359_upmu_set_rg_buck_vmodem_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_buck_vmodem_vosel(void);
extern unsigned int mt6359_upmu_set_rg_buck_vproc1_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_buck_vproc1_en(void);
extern unsigned int mt6359_upmu_get_da_vproc1_vosel(void);
extern unsigned int mt6359_upmu_set_rg_buck_vproc1_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_buck_vproc1_vosel(void);
extern unsigned int mt6359_upmu_set_rg_buck_vproc2_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_buck_vproc2_en(void);
extern unsigned int mt6359_upmu_get_da_vproc2_vosel(void);
extern unsigned int mt6359_upmu_set_rg_buck_vproc2_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_buck_vproc2_vosel(void);
extern unsigned int mt6359_upmu_set_rg_buck_vs1_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_buck_vs1_en(void);
extern unsigned int mt6359_upmu_get_da_vs1_vosel(void);
extern unsigned int mt6359_upmu_set_rg_buck_vs1_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_buck_vs1_vosel(void);
extern unsigned int mt6359_upmu_set_rg_buck_vs2_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_buck_vs2_en(void);
extern unsigned int mt6359_upmu_get_da_vs2_vosel(void);
extern unsigned int mt6359_upmu_set_rg_buck_vs2_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_buck_vs2_vosel(void);
extern unsigned int mt6359_upmu_set_rg_buck_vpa_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_buck_vpa_en(void);
extern unsigned int mt6359_upmu_set_rg_buck_vpa_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_buck_vpa_vosel(void);
extern unsigned int mt6359_upmu_get_da_vpa_vosel(void);
extern unsigned int mt6359_upmu_set_rg_vrtc28_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_vrtc28_en(void);
extern unsigned int mt6359_upmu_set_rg_ldo_vsram_proc1_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_ldo_vsram_proc1_vosel(void);
extern unsigned int mt6359_upmu_set_rg_ldo_vsram_proc2_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_ldo_vsram_proc2_vosel(void);
extern unsigned int mt6359_upmu_set_rg_ldo_vsram_others_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_ldo_vsram_others_vosel(void);
extern unsigned int mt6359_upmu_set_rg_ldo_vsram_md_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_ldo_vsram_md_vosel(void);
extern unsigned int mt6359_upmu_set_rg_ldo_vfe28_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_ldo_vfe28_en(void);
extern unsigned int mt6359_upmu_set_rg_ldo_vxo22_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_ldo_vxo22_en(void);
extern unsigned int mt6359_upmu_set_rg_ldo_vrf18_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_ldo_vrf18_en(void);
extern unsigned int mt6359_upmu_set_rg_ldo_vrf12_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_ldo_vrf12_en(void);
extern unsigned int mt6359_upmu_set_rg_ldo_vefuse_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_ldo_vefuse_en(void);
extern unsigned int mt6359_upmu_set_rg_ldo_vcn33_1_bt_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_ldo_vcn33_1_bt_en(void);
extern unsigned int mt6359_upmu_set_rg_ldo_vcn33_1_wifi_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_ldo_vcn33_1_wifi_en(void);
extern unsigned int mt6359_upmu_set_rg_ldo_vcn33_2_bt_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_ldo_vcn33_2_bt_en(void);
extern unsigned int mt6359_upmu_set_rg_ldo_vcn33_2_wifi_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_ldo_vcn33_2_wifi_en(void);
extern unsigned int mt6359_upmu_set_rg_ldo_vcn13_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_ldo_vcn13_en(void);
extern unsigned int mt6359_upmu_set_rg_ldo_vcn18_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_ldo_vcn18_en(void);
extern unsigned int mt6359_upmu_set_rg_ldo_va09_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_ldo_va09_en(void);
extern unsigned int mt6359_upmu_set_rg_ldo_vcamio_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_ldo_vcamio_en(void);
extern unsigned int mt6359_upmu_set_rg_ldo_va12_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_ldo_va12_en(void);
extern unsigned int mt6359_upmu_set_rg_ldo_vaux18_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_ldo_vaux18_en(void);
extern unsigned int mt6359_upmu_set_rg_ldo_vaud18_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_ldo_vaud18_en(void);
extern unsigned int mt6359_upmu_set_rg_ldo_vio18_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_ldo_vio18_en(void);
extern unsigned int mt6359_upmu_set_rg_ldo_vemc_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_ldo_vemc_en(void);
extern unsigned int mt6359_upmu_set_rg_ldo_vsim1_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_ldo_vsim1_en(void);
extern unsigned int mt6359_upmu_set_rg_ldo_vsim2_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_ldo_vsim2_en(void);
extern unsigned int mt6359_upmu_set_rg_ldo_vusb_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_ldo_vusb_en(void);
extern unsigned int mt6359_upmu_set_rg_ldo_vrfck_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_ldo_vrfck_en(void);
extern unsigned int mt6359_upmu_set_rg_ldo_vbbck_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_ldo_vbbck_en(void);
extern unsigned int mt6359_upmu_set_rg_ldo_vbif28_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_ldo_vbif28_en(void);
extern unsigned int mt6359_upmu_set_rg_ldo_vibr_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_ldo_vibr_en(void);
extern unsigned int mt6359_upmu_set_rg_ldo_vio28_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_ldo_vio28_en(void);
extern unsigned int mt6359_upmu_set_rg_ldo_vm18_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_ldo_vm18_en(void);
extern unsigned int mt6359_upmu_set_rg_ldo_vufs_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_ldo_vufs_en(void);
extern unsigned int mt6359_upmu_set_rg_ldo_vsram_proc1_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_ldo_vsram_proc1_en(void);
extern unsigned int mt6359_upmu_get_da_vsram_proc1_vosel(void);
extern unsigned int mt6359_upmu_set_rg_ldo_vsram_proc2_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_ldo_vsram_proc2_en(void);
extern unsigned int mt6359_upmu_get_da_vsram_proc2_vosel(void);
extern unsigned int mt6359_upmu_set_rg_ldo_vsram_others_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_ldo_vsram_others_en(void);
extern unsigned int mt6359_upmu_get_da_vsram_others_vosel(void);
extern unsigned int mt6359_upmu_set_rg_ldo_vsram_md_en(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_ldo_vsram_md_en(void);
extern unsigned int mt6359_upmu_get_da_vsram_md_vosel(void);
extern unsigned int mt6359_upmu_set_rg_vemc_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_vemc_vosel(void);
extern unsigned int mt6359_upmu_set_rg_vfe28_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_vfe28_vosel(void);
extern unsigned int mt6359_upmu_set_rg_vaux18_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_vaux18_vosel(void);
extern unsigned int mt6359_upmu_set_rg_vusb_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_vusb_vosel(void);
extern unsigned int mt6359_upmu_set_rg_vbif28_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_vbif28_vosel(void);
extern unsigned int mt6359_upmu_set_rg_vcn33_1_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_vcn33_1_vosel(void);
extern unsigned int mt6359_upmu_set_rg_vcn33_2_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_vcn33_2_vosel(void);
extern unsigned int mt6359_upmu_set_rg_vsim1_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_vsim1_vosel(void);
extern unsigned int mt6359_upmu_set_rg_vsim2_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_vsim2_vosel(void);
extern unsigned int mt6359_upmu_set_rg_vio28_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_vio28_vosel(void);
extern unsigned int mt6359_upmu_set_rg_vibr_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_vibr_vosel(void);
extern unsigned int mt6359_upmu_set_rg_va12_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_va12_vosel(void);
extern unsigned int mt6359_upmu_set_rg_vrf18_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_vrf18_vosel(void);
extern unsigned int mt6359_upmu_set_rg_vefuse_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_vefuse_vosel(void);
extern unsigned int mt6359_upmu_set_rg_vcn18_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_vcn18_vosel(void);
extern unsigned int mt6359_upmu_set_rg_vcamio_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_vcamio_vosel(void);
extern unsigned int mt6359_upmu_set_rg_vaud18_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_vaud18_vosel(void);
extern unsigned int mt6359_upmu_set_rg_vio18_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_vio18_vosel(void);
extern unsigned int mt6359_upmu_set_rg_vm18_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_vm18_vosel(void);
extern unsigned int mt6359_upmu_set_rg_vufs_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_vufs_vosel(void);
extern unsigned int mt6359_upmu_set_rg_vrf12_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_vrf12_vosel(void);
extern unsigned int mt6359_upmu_set_rg_vcn13_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_vcn13_vosel(void);
extern unsigned int mt6359_upmu_set_rg_va09_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_va09_vosel(void);
extern unsigned int mt6359_upmu_set_rg_vxo22_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_vxo22_vosel(void);
extern unsigned int mt6359_upmu_set_rg_vrfck_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_vrfck_vosel(void);
extern unsigned int mt6359_upmu_set_rg_vbbck_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_vbbck_vosel(void);
extern unsigned int mt6359_upmu_set_rg_vcn33_1_bt_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_vcn33_1_bt_vosel(void);
extern unsigned int mt6359_upmu_set_rg_vcn33_1_wifi_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_vcn33_1_wifi_vosel(void);
extern unsigned int mt6359_upmu_set_rg_vcn33_2_bt_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_vcn33_2_bt_vosel(void);
extern unsigned int mt6359_upmu_set_rg_vcn33_2_wifi_vosel(unsigned int val);
extern unsigned int mt6359_upmu_get_rg_vcn33_2_wifi_vosel(void);
#endif		/* _MT_PMIC_API_H_ */
